package com.woniu.postbar.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author wu
 * @since 2023-05-20
 */
@Getter
@Setter
@TableName("t_post_like")
@ApiModel(value = "PostLike对象", description = "")
public class PostLike implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("帖子id")
    private Integer postId;

    @ApiModelProperty("评论id")
    private Integer commentId;

    @ApiModelProperty("点赞状态（0-确认，1-取消）")
    private Byte postStatus;

    @ApiModelProperty("点赞时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;
}
